<h1>Listing iterations</h1>

<table>
  <tr>
    <th>Project</th>
    <th>Name</th>
    <th>Objectives</th>
    <th>Start date</th>
    <th>End date</th>
    <th>Work units</th>
    <th>Report sent</th>
    <th>Created by</th>
    <th>Updated by</th>
  </tr>

<% for iteration in @iterations %>
  <tr>
    <td><%=h iteration.project_id %></td>
    <td><%=h iteration.name %></td>
    <td><%=h iteration.objectives %></td>
    <td><%=h iteration.start_date %></td>
    <td><%=h iteration.end_date %></td>
    <td><%=h iteration.work_units %></td>
    <td><%=h iteration.report_sent %></td>
    <td><%=h iteration.created_by %></td>
    <td><%=h iteration.updated_by %></td>
    <td><%= link_to 'Show', iteration %></td>
    <td><%= link_to 'Edit', edit_iteration_path(iteration) %></td>
    <td><%= link_to 'Destroy', iteration, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New iteration', new_iteration_path %>
